{include file='public/header.html'}

<div class="container mtn">

    <div class="panel panel-default">
        <div class="panel-heading">
            <i class="glyphicon glyphicon-book"></i> {$vo.title}
        </div>
        <div class="panel-body">
            {php $start_id=get_start_id($vo['id'])}
            <div class="row">
                <div class="col-md-5">
                    <a href="{:url('doc/read',['id'=>$start_id])}">
                        <img src="{:rand_thumb($vo['thumb'], $vo['id'])}" width="100%" alt="{$vo.title}">
                    </a>
                </div>
                <div class="col-md-7">
                    <h4>{if $vo['is_public']==0:}[VIP]{/if} {$vo.title}</h4>
                    <p>版本号：{$vo.version}</p>
                    <p>创建者：<a href="{:url('user/info',['id'=>$vo['user_id']])}"><i class="glyphicon glyphicon-user"></i> {$vo.user_id|get_nickname}</a>&nbsp;&nbsp;</p>
                    <p>成员数：<span class="text-danger">{$member_count}</span> 人</p>
                    <div>
                        {if $prem_type==1:}
                        <a class="btn btn-success btn-sm" href="{:url('doc/read',['id'=>$start_id])}" target="_blank">立即阅读 &raquo;</a>
                        {elseif $prem_type==2:}
                        <a class="btn btn-success btn-sm" href="{:url('doc/read',['id'=>$start_id])}" target="_blank">立即阅读 &raquo;</a>
                        <a class="btn btn-primary btn-sm" href="javascript:ajaxConfirm('{:url('book/join',['id'=>$vo['id'],'level'=>2])}','申请编辑')">申请编辑 &raquo;</a>
                        {else:}
                        <a class="btn btn-success btn-sm" href="javascript:ajaxConfirm('{:url('book/join',['id'=>$vo['id']])}','申请加入成员')">申请阅读 &raquo;</a>
                        <a class="btn btn-primary btn-sm" href="javascript:ajaxConfirm('{:url('book/join',['id'=>$vo['id'],'level'=>2])}','申请成编辑')">申请编辑 &raquo;</a>
                        {/if}
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default mtn">
        <div class="panel-heading">
           <i class="glyphicon glyphicon-tags"></i> 文集介绍
        </div>
        <div class="panel-body">
            {$vo.summary}
        </div>
    </div>

</div>

{include file='public/footer.html'}
</body>
</html>